#ifndef TETRIS_H
#define TETRIS_H

#include <QMainWindow>
#include<qpainter.h>
#include<QApplication>

const int BLOCK_SIZE=30;//单个方块单元的边长
const int MARGIN=20;//场景边距
const int AREA_ROW=24;//场景行数
const int AREA_COL=16;//场景列数

namespace Ui { class Tetris; }

class Tetris : public QMainWindow
{
    Q_OBJECT

public:
    Tetris(QWidget *parent=0);
    ~Tetris();
    virtual void paintEvent(QPaintEvent *event);

private:
    Ui::Tetris *ui;

private:


};
#endif // TETRIS_H